<?php

namespace app\api\model;

use think\Model;

class ImageList extends Model
{
    protected $pk = 'image_id';

    public static function getListByCategoryId($categoryId)
    {
        return self::where('category_id', $categoryId)
            ->where('image_status', 1)
            ->order('image_sort asc,image_id desc')
            ->select()
            ->toArray();
    }

}